#!/usr/bin/env python
#coding=utf-8
from sqlalchemy import or_ ,and_
from Applications.extensions import db
from .BaseModel import baseModel


class homemenusMode(baseModel):
    __tablename__ = "home_menus"

    menu_id = db.Column(db.Integer, primary_key=True,nullable=False, comment='id')
    menu_name = db.Column(db.String(255), nullable=False, comment='菜单名')
    menu_otherName = db.Column(db.String(255), nullable=False, comment='菜单别名')
    menu_pathName = db.Column(db.String(5000), nullable=False, comment='自定义路径')
    menu_classId = db.Column(db.Integer, nullable=False, comment='所属分类ID')
    menu_show = db.Column(db.SmallInteger, nullable=False, comment='是否隐藏')
    menu_url = db.Column(db.String(5000), nullable=False, comment='自定义url')
    menu_order = db.Column(db.Integer, nullable=False, comment='菜单排序')
    menu_style = db.Column(db.String(5000), nullable=False, comment='style')


    def __repr__(self):
        return '<User %r>' % self.menu_name